package com.ciko.code.bean;

import java.io.Serializable;

/**
 * Created by LEECO on 2016/6/2.
 */
public class MyFieldWorkBean implements Serializable,Comparable<MyFieldWorkBean>{
    /**
     * "createTime":1459303622000,
     "custAddr":"文一西路522号",
     "custName":"罗毅",
     "direction":"领导指导",
     "enterpriseId":10000000,
     "epId":10000000,
     "feedback":"拜访反馈",
     "id":3,     //外勤编号
     "leaderHead":"", //领导头像
     "leaderId":7546,
     "leaderName":"董之明",
     "leaderPosition":"8",
     "nickName":"3",
     "staffName":"罗毅",
     "userHead":"", //
     "userId":129357,
     "userPositionMark":"10",//员工角色标志
     "visitCause":"业务合作",
     "visitDate":1459267200000,
     "visitTime":1459303862000

     */

    private long createTime;
    private String actualAddr;
    private long actualLat;
    private long actualLon;
    private String custAddr;
    private String direction;
    private String feedback;
    private String id;
    private String leaderHead;
    private String leaderId;
    private String leaderName;
    private String leaderPosition;
    private String userHead;
    private int userPositionMark;
    private long custLat;
    private long custLon;
    private String custName;
    private String enterpriseId;
    private String epId;
    private String isSame;
    private String nickName;
    private String staffName;
    private String userId;
    private String visitCause;
    private long visitDate;
    private long visitTime;


    @Override
    public String toString() {
        return "MyFieldWorkBean{" +
                "createTime=" + createTime +
                ", actualAddr='" + actualAddr + '\'' +
                ", actualLat=" + actualLat +
                ", actualLon=" + actualLon +
                ", custAddr='" + custAddr + '\'' +
                ", direction='" + direction + '\'' +
                ", feedback='" + feedback + '\'' +
                ", id='" + id + '\'' +
                ", leaderHead='" + leaderHead + '\'' +
                ", leaderId='" + leaderId + '\'' +
                ", leaderName='" + leaderName + '\'' +
                ", leaderPosition='" + leaderPosition + '\'' +
                ", userHead='" + userHead + '\'' +
                ", userPositionMark=" + userPositionMark +
                ", custLat=" + custLat +
                ", custLon=" + custLon +
                ", custName='" + custName + '\'' +
                ", enterpriseId='" + enterpriseId + '\'' +
                ", epId='" + epId + '\'' +
                ", isSame='" + isSame + '\'' +
                ", nickName='" + nickName + '\'' +
                ", staffName='" + staffName + '\'' +
                ", userId='" + userId + '\'' +
                ", visitCause='" + visitCause + '\'' +
                ", visitDate=" + visitDate +
                ", visitTime=" + visitTime +
                '}';
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getFeedback() {
        return feedback;
    }

    public void setFeedback(String feedback) {
        this.feedback = feedback;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLeaderHead() {
        return leaderHead;
    }

    public void setLeaderHead(String leaderHead) {
        this.leaderHead = leaderHead;
    }

    public String getLeaderId() {
        return leaderId;
    }

    public void setLeaderId(String leaderId) {
        this.leaderId = leaderId;
    }

    public String getLeaderName() {
        return leaderName;
    }

    public void setLeaderName(String leaderName) {
        this.leaderName = leaderName;
    }

    public String getLeaderPosition() {
        return leaderPosition;
    }

    public void setLeaderPosition(String leaderPosition) {
        this.leaderPosition = leaderPosition;
    }

    public String getUserHead() {
        return userHead;
    }

    public void setUserHead(String userHead) {
        this.userHead = userHead;
    }

    public int getUserPositionMark() {
        return userPositionMark;
    }

    public void setUserPositionMark(int userPositionMark) {
        this.userPositionMark = userPositionMark;
    }

    public long getActualLat() {
        return actualLat;
    }

    public void setActualLat(long actualLat) {
        this.actualLat = actualLat;
    }

    public long getActualLon() {
        return actualLon;
    }

    public void setActualLon(long actualLon) {
        this.actualLon = actualLon;
    }

    public long getCustLat() {
        return custLat;
    }

    public void setCustLat(long custLat) {
        this.custLat = custLat;
    }

    public long getCustLon() {
        return custLon;
    }

    public void setCustLon(long custLon) {
        this.custLon = custLon;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getActualAddr() {
        return actualAddr;
    }

    public void setActualAddr(String actualAddr) {
        this.actualAddr = actualAddr;
    }


    public String getCustAddr() {
        return custAddr;
    }

    public void setCustAddr(String custAddr) {
        this.custAddr = custAddr;
    }


    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    public String getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(String enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getEpId() {
        return epId;
    }

    public void setEpId(String epId) {
        this.epId = epId;
    }

    public String getIsSame() {
        return isSame;
    }

    public void setIsSame(String isSame) {
        this.isSame = isSame;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getVisitCause() {
        return visitCause;
    }

    public void setVisitCause(String visitCause) {
        this.visitCause = visitCause;
    }

    public long getVisitDate() {
        return visitDate;
    }

    public void setVisitDate(long visitDate) {
        this.visitDate = visitDate;
    }

    public long getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(long visitTime) {
        this.visitTime = visitTime;
    }

    @Override
    public int compareTo(MyFieldWorkBean myFieldWorkBean) {
        return String.valueOf(myFieldWorkBean.getCreateTime()).compareTo(String.valueOf(this.getCreateTime()));
    }
}
